package com.example.demo;




import com.example.hello.HelloService;
import com.yb.strategy.StrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloWorldController {

    @Autowired
    HelloService service;
    @Autowired
    StrategyService strategyService;


    @RequestMapping("/say")
    public String say(){
       return  service.sayHello();
    }

    @RequestMapping("/strategy")
    public int strategy(){
        return strategyService.doMethod();
    }
}
